package com.sjl.estest.domain.index;

import cn.easyes.annotation.IndexField;
import cn.easyes.annotation.IndexId;
import cn.easyes.annotation.IndexName;
import cn.easyes.annotation.rely.Analyzer;
import cn.easyes.annotation.rely.FieldType;
import lombok.Data;


@Data
public class HotelIndex {

    @IndexId
    private String id;

    @IndexField(fieldType = FieldType.KEYWORD)
    private Long hotelId;

    @IndexField(fieldType = FieldType.TEXT, searchAnalyzer = Analyzer.IK_MAX_WORD, analyzer = Analyzer.IK_MAX_WORD)
    private String name;

    @IndexField(fieldType = FieldType.TEXT, searchAnalyzer = Analyzer.IK_MAX_WORD, analyzer = Analyzer.IK_MAX_WORD)
    private String address;

    @IndexField(fieldType = FieldType.KEYWORD)
    private String brand;

    @IndexField(fieldType = FieldType.INTEGER)
    private Integer price;

}
